﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace RoboTrocity.Code.ObjectStates {
	class WalkState : StandState {
		public WalkState(Entity entity, Sprite newSprite)
			: base(entity, newSprite) {
		}

		public override void Jump() {
			attachedEntity.applyForce(0.0f, -12.0f * attachedEntity.getStat("jump"));
		}

		public override void MoveLeft() {
			attachedEntity.applyForce(new Vector2(-2.0f, 0));
			attachedEntity.FacingLeft = true;
		}

		public override void MoveRight() {
			attachedEntity.applyForce(new Vector2(2.0f, 0));
			attachedEntity.FacingLeft = false;
		}
	}
}
